Skip to content

Instantly share code, notes, and snippets.

@ccstone
ccstone / References For Learning & Using Applescript.md
Last active May 10, 2024 15:40
References For Learning & Using Applescript

REFERENCES FOR LEARNING & USING APPLESCRIPT Modified: 2018/06/19 18:47


NOTES

AppleScript is a rather peculiar scripting language to learn.

@neisdev
neisdev / index.html
Created February 4, 2022 12:52
Pure AlpineJS WYSIWYG Editor
<div class="min-w-screen min-h-screen bg-gray-200 flex items-center justify-center px-5 py-5">
<div class="w-full max-w-6xl mx-auto rounded-xl bg-white shadow-lg p-5 text-black" x-data="app()" x-init="init($refs.wysiwyg)">
<div class="border border-gray-200 overflow-hidden rounded-md">
<div class="w-full flex border-b border-gray-200 text-xl text-gray-600">
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('bold')">
<i class="mdi mdi-format-bold"></i>
</button>
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('italic')">
<i class="mdi mdi-format-italic"></i>
</button>
@paulirish
paulirish / gist:438326
Created June 14, 2010 21:27
10 things i learned from the jquery source
/*
.d dP"Yb 888888 88 88 88 88b 88 dP""b8 .dP"Y8
.d88 dP Yb 88 88 88 88 88Yb88 dP `" `Ybo."
88 Yb dP 88 888888 88 88 Y88 Yb "88 o.`Y8b
88 YbodP 88 88 88 88 88 Y8 YboodP 8bodP'
@zarigani
zarigani / _gui.scpt
Created February 26, 2009 00:11
AppleScript's Library & Script
(*
GUIライブラリ
ロード方法の例(このライブラリをユーザースクリプトフォルダに"_gui.scpt"で保存した場合)
property GUI : load script file ((path to scripts folder as text) & "_gui.scpt")
あるいは動的に...
set GUI to load script file ((path to scripts folder as text) & "_gui.scpt")
開発&テスト環境
MacBook OSX 10.5.6
AppleScript 2.0.1
@paulweezydesign
paulweezydesign / index.html
Created October 28, 2023 12:10
Pure AlpineJS WYSIWYG Editor
<div class="min-w-screen min-h-screen bg-gray-200 flex items-center justify-center px-5 py-5">
<div class="w-full max-w-6xl mx-auto rounded-xl bg-white shadow-lg p-5 text-black" x-data="app()" x-init="init($refs.wysiwyg)">
<div class="border border-gray-200 overflow-hidden rounded-md">
<div class="w-full flex border-b border-gray-200 text-xl text-gray-600">
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('bold')">
<i class="mdi mdi-format-bold"></i>
</button>
<button class="outline-none focus:outline-none border-r border-gray-200 w-10 h-10 hover:text-indigo-500 active:bg-gray-50" @click="format('italic')">
<i class="mdi mdi-format-italic"></i>
</button>
@tastygoods
tastygoods / strange_sm_gul_files
Created January 4, 2012 18:55
SOLVED: Investigation of strange .SM.gul files.
UPDATE/SOLVED: 01/06/12
***
After further investigation by @noarfromspace with @IntegoSecurity it was
decided that Apple's Migration Assistant had created these files .SM.gul.*
clone files and likely crashed or had otherwise failed to clean them up.
Links to the class dump and disassembly of the migration framework where
the code utilizes the ".SM.gul." prefix in several locations.
@Thanood
Thanood / app.html
Last active May 10, 2024 15:39
Aurelia-Materialize bridge chips editor
<template>
<div md-chips="data.bind: chips; placeholder:+tag;"></div>
<div>
<!-- chip data: ${chips|stringify} -->
chip data:
<ul>
<li repeat.for="chip of chips">
${chip.tag}
</li>
</ul>
@tedchoward
tedchoward / Readme.md
Last active May 10, 2024 15:39
launchd script to keep OPML editor running

Copy the plist to ~/Library/LaunchAgents then run

launchctl load ~/Library/LaunchAgents/com.scripting.opml.plist

This plist assumes that OPML Editor is installed in /Applications/OPML. If you have it installed in a different location, you will need to modify line 13 of the plist.

The OPML Editor should launch. It will re-launch within 10 seconds if it quits for whatever reason.

killall OPML
@lambdamusic
lambdamusic / keynote.scpt
Last active May 10, 2024 15:38
Apple Keynote: export presenter notes
-- HOWTO:
-- after saving it, open with Script Editor (default) and run it
-- PREREQUISITES:
-- make sure your Keynote presentation is open in the background
-- AFTER EXPORT:
-- if you can't open the file due to encoding errors, open with Sublime (or another a text editor) and then "File / Save with encoding / UTF8"
tell application "Keynote"
@snjjay
snjjay / index.html
Last active May 10, 2024 15:38
Online HTML Editor
<head>
<link href='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.css' rel='stylesheet'>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/codemirror.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/htmlmixed/htmlmixed.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/javascript/javascript.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.16.0/mode/xml/xml.js'></script>
</head>
<body>
<div style="background-color: #FFF; max-width: 800px; margin: auto; padding: 20px;">